package com.hua.yuan.live;
import android.content.Context;

import com.hua.yuan.rtcroom.RTCRoom;

import java.util.ArrayList;
import java.util.List;

/**
 * @author richsjeson
 * 直播业务模组
 */
public class LiveModule {
    /**
     * 主播ID主键
     */
    public final static String INTENT_ANCHOR_ID="INTENT_ANCHOR_ID";
    /**
     * 昵称
     */
    public final static String INTENT_ANCHOR_NICK_NAME="INTENT_ANCHOR_NICK_NAME";
    /**
     * 在线人数
     */
    public final static String INTENT_ANCHOR_ONLINE="INTENT_ANCHOR_ONLINE";
    /**
     * 房间编号
     */
    public final static String INTENT_ANCHOR_ROOM_NO="INTENT_ANCHOR_ROOM_NO";
    /**
     * 是否直播
     */
    public final static String INTENT_ANCHOR_IS_LIVE="INTENT_ANCHOR_IS_LIVE";
    /**
     * 是否关注
     */
    public final static String INTENT_ANCHOR_IS_ATTENTION="INTENT_ANCHOR_IS_ATTENTION";
    /**
     * 当前用户的代币数
     */
    public final static  String INTENT_USER_MONEY = "INTENT_USER_MONEY";
    /**
     * 当前用户的代币数
     */
    public final static  String INTENT_GROUP_ID = "INTENT_GROUP_ID";
    /**
     * 直播播放的URL
     */
    public final static String INTENT_VIDEO_URL="INTENT_VIDEO_URL";


    public final static int RESULT_ANCHOR_CODE=1006;

    public static final String INTENT_ANCHOR_RTC_USER_ID ="INTENT_ANCHOR_RTC_USER_ID" ;
    public static final String RTC_TYPE ="rtc" ;
    //TODO 有可能会引起泄露
    public static List<String> searchList=new ArrayList<>();

    private static RTCRoom mRtcRoom;

    public static RTCRoom getRtcRoom(Context pContext){
        if(mRtcRoom==null){
            mRtcRoom=new RTCRoom(pContext);
        }
        return mRtcRoom;
    }

}
